<template>
  <div class="header-bar">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="center">
      <slot></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<style lang="less">
@import "../utils/_vars.less";
@import "../utils/_mixins.less";
.header-bar {
  -webkit-app-region: drag;
  display: flex;
  align-self: flex-start;
  justify-content: flex-start;
  align-items: center;
  color: #FFF;
  box-shadow: 0 1px 8px rgba(0,0,0,.1);
  z-index: 1;
  background-color: #324057;
  font-size: 20px;
  padding-left: 15px;
  height: @header-height;
  width: 100%;
  .flex-shrink(0);
  > .left,
  > .right{
    .flex-shrink(0);
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  > .right{
    -webkit-app-region: no-drag;
    height: 100%;
  }
  > .center{
    -webkit-app-region: drag;
    flex: 1;
    line-height: @header-height;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .button {
    font-size: 18px;
    background: none;
    height: 56px;
    line-height: 56px;
    color: #FFF;
    .ripple-ink{
      color: rgba(255, 255, 255, .3);
    }
  }

  .icon-button {
    background: none;
    width: 56px;
    height: 56px;
    color: #fff;
    .ripple-ink{
      color: rgba(255, 255, 255, .3);
    }
  }
}
</style>
